/**
 * Initalisiert die Datentabellen
 */

$(document).ready(function() {

	$('#lectures').dataTable({
		"aaSorting" : [ [ 0, "asc" ] ],
		"aLengthMenu" : [ [ 10, 25, 50, -1 ], [ 10, 25, 50, "Alle" ] ]
	});
	
		
});

/**
 *  Ein-/Ausblenden von Boxinhalten
 */

$.toggle = function(query, img)
{
        if($(query).css("display") == "none") {
        	$(img).attr("src", "media/images/minus.png");
        } else {
        	$(img).attr("src", "media/images/plus.png");
        }
        $(query).toggle("slow");
} 